import request from '@/utils/request'

export default {
  lastLogin(){
    return request({
      url: '/tb-adm/lastLogin',
      method: 'get',
    })
  },
  getInfo(token) {
    return request({
      url: '/tb-adm/info',
      method: 'get',
      params: { token }
    })
  },
  tbAdmUpdate(data){
    return request({
      url: '/tb-adm/tbAdmUpdate',
      method: 'post',
      data
    })
  },
  tbAdmPassUpdate(params){
    return request({
      url: '/tb-adm/tbAdmPassUpdate',
      method: 'post',
      params
    })
  },
}
